import Layout from '@/layout'

const couponRouter = {
    path: '/coupon',
    component: Layout,
    redirect: '/coupon/couponlist',
    name: 'Coupon',
    meta: {
        title: 'coupon',
        icon: 'list',
        roles: ['other'] // you can set roles in root nav
    },
    children: [
        {
            path: 'couponlist',
            component: () => import('@/views/coupon/index'),
            name: 'CouponList',
            meta: {
                title: 'couponlist',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'couponsendlist',
            component: () => import('@/views/coupon/sendList'),
            name: 'CouponSendList',
            meta: {
                title: 'couponsendlist',
                roles: ['other'] // or you can only set roles in sub nav
            }
        }
    ]
}
export default couponRouter
